<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-annualInspection-edit" th:object="${annualInspection}">
            <input id="inspectionId" name="inspectionId" th:field="*{inspectionId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">关联计划ID：</label>
				<div class="col-sm-8">
					<input id="planId" name="planId" th:field="*{planId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">电梯名称：</label>
				<div class="col-sm-8">
					<input id="elevatorName" name="elevatorName" th:field="*{elevatorName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检日期：</label>
				<div class="col-sm-8">
					<input id="annualDate" name="annualDate" th:field="*{annualDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否检查限速器（0.是，1.否）：</label>
				<div class="col-sm-8">
					<input id="checkSpeedLimiter" name="checkSpeedLimiter" th:field="*{checkSpeedLimiter}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否年检通过：</label>
				<div class="col-sm-8">
					<input id="checkThrough" name="checkThrough" th:field="*{checkThrough}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检状态(0.待启动,1.执行中,2.已完成,3.已超期)：</label>
				<div class="col-sm-8">
					<input id="inspectionStatus" name="inspectionStatus" th:field="*{inspectionStatus}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检负责人：</label>
				<div class="col-sm-8">
					<input id="headMan" name="headMan" th:field="*{headMan}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">负责人ID：</label>
				<div class="col-sm-8">
					<input id="headUserId" name="headUserId" th:field="*{headUserId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检启动日期：</label>
				<div class="col-sm-8">
					<input id="startTime" name="startTime" th:field="*{startTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检完成时间：</label>
				<div class="col-sm-8">
					<input id="completionTime" name="completionTime" th:field="*{completionTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检描述：</label>
				<div class="col-sm-8">
					<input id="inspectionContext" name="inspectionContext" th:field="*{inspectionContext}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">年检图片：</label>
				<div class="col-sm-8">
					<input id="inspectionImg" name="inspectionImg" th:field="*{inspectionImg}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建者：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新者：</label>
				<div class="col-sm-8">
					<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "business/annualInspection";
		$("#form-annualInspection-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-annualInspection-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
